home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / Basic / Visual Basic.60 / COMMON / TOOLS / VCM / VCM.MDB / VcmComponentContainer / 23_Cabinet / IMAGECTL.H < prev    next >
Encoding:
C/C++ Source or Header  |  1998-05-18  |  2.2 KB  |  81 lines

  1. // ImageCtl.h : Declaration of the CImageCtrl OLE control class.
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CImageCtrl : See ImageCtl.cpp for implementation.
  15.  
  16. class CImageCtrl : public COleControl
  17. {
  18.     DECLARE_DYNCREATE(CImageCtrl)
  19.  
  20. // Constructor
  21. public:
  22.     CImageCtrl();
  23.  
  24.     void AutoSize();
  25.     void InformSize();
  26.     void InformDlStatus(CBitmapProperty::DLState dlState);
  27.  
  28.     CBitmapProperty m_bitprop;
  29.  
  30. // Overrides
  31.     // ClassWizard generated virtual function overrides
  32.     //{{AFX_VIRTUAL(CImageCtrl)
  33.     public:
  34.     virtual void OnDraw(CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid);
  35.     virtual void DoPropExchange(CPropExchange* pPX);
  36.     virtual void OnResetState();
  37.     virtual DWORD GetControlFlags();
  38.     //}}AFX_VIRTUAL
  39.  
  40. // Implementation
  41. protected:
  42.     ~CImageCtrl();
  43.  
  44.     DECLARE_OLECREATE_EX(CImageCtrl)    // Class factory and guid
  45.     DECLARE_OLETYPELIB(CImageCtrl)      // GetTypeInfo
  46.     DECLARE_PROPPAGEIDS(CImageCtrl)     // Property page IDs
  47.     DECLARE_OLECTLTYPE(CImageCtrl)      // Type name and misc status
  48.  
  49. // Message maps
  50.     //{{AFX_MSG(CImageCtrl)
  51.         // NOTE - ClassWizard will add and remove member functions here.
  52.         //    DO NOT EDIT what you see in these blocks of generated code !
  53.     //}}AFX_MSG
  54.     DECLARE_MESSAGE_MAP()
  55.  
  56. // Dispatch maps
  57.     //{{AFX_DISPATCH(CImageCtrl)
  58.     BOOL m_bAutoSize;
  59.     afx_msg void OnAutoSizeChanged();
  60.     afx_msg BSTR GetImagePath();
  61.     afx_msg void SetImagePath(LPCTSTR lpszNewValue);
  62.     //}}AFX_DISPATCH
  63.     DECLARE_DISPATCH_MAP()
  64.  
  65.     afx_msg void AboutBox();
  66.  
  67. // Event maps
  68.     //{{AFX_EVENT(CImageCtrl)
  69.     //}}AFX_EVENT
  70.     DECLARE_EVENT_MAP()
  71.  
  72. // Dispatch and event IDs
  73. public:
  74.     enum {
  75.     //{{AFX_DISP_ID(CImageCtrl)
  76.     dispidAutoSize = 1L,
  77.     dispidImagePath = 2L,
  78.     //}}AFX_DISP_ID
  79.     };
  80. };
  81.